<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const goLogin = () => {
  router.push('/login?redirect=/about')
}
</script>

<template>
  <div class="app-page">About</div>
  <button @click="goLogin">登录</button>
</template>

<style scoped></style>
